import 'dart:io';

import 'package:flutter/material.dart';
import 'package:flutter/services.dart';

import 'BottomNavigationWidget.dart';

void main() {
  runApp(MyApp());
  if (Platform.isAndroid) {
    // 这是为了实现沉浸式状态栏
    SystemUiOverlayStyle style = SystemUiOverlayStyle(statusBarColor: Colors.transparent);
    SystemChrome.setSystemUIOverlayStyle(style);
  }
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: "CCShop",
      home: Scaffold(
        body: BottomNavigationWidget(),
      ),
      theme: ThemeData(
        primaryColor: Colors.red,
        // 下面两个颜色设置成一样的，就是去掉水波纹效果了
        splashColor: Colors.white,
        highlightColor: Colors.white
      ),
    );
  }
}
